Skip to content

[Docs] 로컬 프론트 테스트용 CORS/로그인 임시 오버라이드 원복 체크리스트 추가#32

Open
LeeJeongHeon02 wants to merge 1 commit into
devfrom
fix/31-frontend-local-cors
Open

[Docs] 로컬 프론트 테스트용 CORS/로그인 임시 오버라이드 원복 체크리스트 추가#32
LeeJeongHeon02 wants to merge 1 commit into
devfrom
fix/31-frontend-local-cors

Conversation

@LeeJeongHeon02

@LeeJeongHeon02 LeeJeongHeon02 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

📋 작업 내용

issue #31 대응으로 infra/terraform.tfvars의 app_frontend_url을 http://localhost:5173로 임시 변경했다. terraform.tfvars는 gitignore 대상이라 그 변경 자체는 git에 안 남으므로, 실제 배포 전 무엇을 원복해야
하는지 기록해둔다.

📝 변경 사항

📸 스크린샷 (선택사항)

📌 체크리스트

  • 커밋 메시지가 컨벤션을 따릅니다.
  • 로컬에서 기능이 정상적으로 작동하는지 확인했습니다.
  • 주요 변경 사항에 대한 테스트를 추가하거나 수정했고, 테스트가 통과했습니다.
  • 보안상 민감 정보(API 키, 비밀번호 등)가 포함되지 않았는지 확인했습니다.
  • 불필요한 로그, 주석, 사용하지 않는 코드를 제거했습니다.

Summary by CodeRabbit

  • 문서
    • 배포 전 프론트엔드 URL을 임시로 로컬 환경에 설정하는 절차를 추가했습니다.
    • CORS 및 카카오 로그인 리다이렉트 영향과 운영 환경 복원 절차를 안내합니다.
    • 변경 사항 확인, 재배포, 문서 및 이슈 종료 단계가 포함되었습니다.

issue #31 대응으로 infra/terraform.tfvars의 app_frontend_url을
http://localhost:5173로 임시 변경했다. terraform.tfvars는 gitignore
대상이라 그 변경 자체는 git에 안 남으므로, 실제 배포 전 무엇을 원복해야
하는지 기록해둔다.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

배포 전 app_frontend_url을 로컬로 임시 변경했을 때의 영향 범위와 Terraform 원복 절차를 문서화했습니다.

Changes

배포 원복 절차

Layer / File(s) Summary
배포 전 원복 체크리스트
docs/before-prod-deploy-revert-issue-31.md
로컬 URL 변경이 CORS, TrustedOriginValidator, 카카오 로그인 리다이렉트에 미치는 영향과 SSM·S3 CORS 리소스의 Terraform 원복 및 재배포 절차를 정리합니다.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 제목이 로컬 프론트 테스트용 CORS/로그인 임시 오버라이드 원복 체크리스트 추가라는 핵심 변경을 정확히 요약합니다.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/31-frontend-local-cors

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/before-prod-deploy-revert-issue-31.md`:
- Around line 45-46: Verify the application’s SSM parameter read timing and CD
rollout behavior before asserting that redeployment is required. If values are
read only at startup, document the required redeploy/restart and post-deployment
validation steps; if they are dynamically refreshed, revise the statement that
apply alone cannot update running containers.
- Around line 40-42: Update the fenced code block containing app_frontend_url to
declare the hcl language and ensure it has a blank line immediately before and
after the fence, resolving the MD031 and MD040 markdownlint warnings.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: e913157d-9169-4e32-b441-0fc41ed1a3c1

📥 Commits

Reviewing files that changed from the base of the PR and between f4ddde7 and 70b093c.

📒 Files selected for processing (1)
  • docs/before-prod-deploy-revert-issue-31.md

Comment on lines +40 to +42
```
app_frontend_url = "https://www.loovi.my"
```

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

코드 블록에 언어와 주변 빈 줄을 추가해 주세요.

Markdownlint의 MD031/MD040 경고를 해결하려면 fenced block을 hcl로 지정하고 앞뒤에 빈 줄을 둬야 합니다.

수정안
 1. `infra/terraform.tfvars`에서 `app_frontend_url`을 원래 값으로 되돌린다.
+
-   ```
+   ```hcl
    app_frontend_url = "https://www.loovi.my"
    ```
+
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
```
app_frontend_url = "https://www.loovi.my"
```
🧰 Tools
🪛 markdownlint-cli2 (0.23.0)

[warning] 40-40: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


[warning] 40-40: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


[warning] 42-42: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/before-prod-deploy-revert-issue-31.md` around lines 40 - 42, Update the
fenced code block containing app_frontend_url to declare the hcl language and
ensure it has a blank line immediately before and after the fence, resolving the
MD031 and MD040 markdownlint warnings.

Source: Linters/SAST tools

Comment on lines +45 to +46
3. 다음 배포(CD) 때 컨테이너가 SSM에서 값을 다시 읽어가므로, apply 후 재배포가 한 번 있어야
실제로 반영된다 — apply만 하고 재배포를 안 하면 이미 떠 있는 컨테이너는 이전 값을 계속 쓴다.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🩺 Stability & Availability | 🔵 Trivial

SSM 값을 읽는 시점과 재배포 보장을 확인해 주세요.

infra/modules/ssm_params/main.tf:68-76은 SSM 파라미터가 갱신되는 것만 보여 줍니다. 애플리케이션이 시작 시에만 값을 읽는지, CD가 반드시 새 컨테이너를 롤아웃하는지는 제공된 컨텍스트에서 확인되지 않습니다. 실제 동작이 startup-only라면 재배포/재시작과 배포 후 검증 절차를 명시하고, 동적 조회라면 “apply만으로는 반영되지 않는다”는 문구를 조정해 주세요.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/before-prod-deploy-revert-issue-31.md` around lines 45 - 46, Verify the
application’s SSM parameter read timing and CD rollout behavior before asserting
that redeployment is required. If values are read only at startup, document the
required redeploy/restart and post-deployment validation steps; if they are
dynamically refreshed, revise the statement that apply alone cannot update
running containers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant